package com.qinyu.treehole.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qinyu.treehole.bo.CommentBo;
import com.qinyu.treehole.entities.Comment;
import com.qinyu.treehole.vo.FeedCommentVo;
import com.qinyu.treehole.vo.LoginFeedCommentVo;

import java.util.List;

public interface CommentService extends IService<Comment> {

    boolean saveComment(CommentBo commentBo);

    void addLike(Integer userId, Integer commentId);

    void removeLike(Integer userId, Integer commentId);

    List<LoginFeedCommentVo> getLoginCommentsVoByFeedId(Integer feedId, Integer userId);

    List<FeedCommentVo> getCommentsVoByFeedId(Integer feedId);

    long getCommentCountByFeedId(Integer feedId);

    boolean isCommentFeedByUserId(Integer feedId, Integer userId);
}
